package org.edu.modules.research.rproject.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * entity-科研成果表
 */
@TableName
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="科研成果表对象", description="ve_jky_gain")
public class VeJkyGain extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "成果名称")
    @Length(max = 255)
    private String name;

    @TableField
    @ApiModelProperty(value = "成果名称")
    @Length(max = 255)
    private String projectName;

    @TableField
    @ApiModelProperty(value = "项目id（科研项目成果关联项目，其他则为0）")
    private Integer projectId;

    @TableField
    @ApiModelProperty(value = "详情id")
    private String textId;

    @TableField
    @ApiModelProperty(value = "添加时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    @TableField
    @ApiModelProperty(value = "科研分类id（项目成果自动调用项目关联的cateid）")
    private Integer cateId;

    @TableField
    @ApiModelProperty(value = "科研级别id（同上）")
    private Integer levelId;

    @TableField
    @ApiModelProperty(value = "相关资料附件id")
    private Integer fileId;

    @TableField
    @ApiModelProperty(value = "添加人")
    private String addUid;
}
